Test Series - java script

Test Number 83/92

Q: BLOB stands for ______________
A. Binary Little Object
B. Binary Large Object
C. Broken Large Object
D. Binary Small object
Solution: A Blob is an opaque reference to, or handle for, a chunk of data. The name comes from SQL databases, where it means “Binary Large Object.” In JavaScript, Blobs often represent binary data, and they can be large, but neither is required: a Blob could also represent the contents of a small text file.
Q: The size of blobs are generally calculated in ____________
A. Meters
B. Kilometers
C. Bytes
D. Pixels
Solution: A Blob object represents a file-like object of immutable, raw data. Blobs represent data that isn’t necessarily in a JavaScript-native format. Blobs are opaque all you can do with them directly is determine their size in bytes, ask for their MIME type, and chop them up into smaller Blobs.
Q: The blobs are generally stored in ____________
A. Memory
B. Disk
C. Both Memory and Disk
D. Temporary storage
Solution: A Blob object represents a file-like object of immutable, raw data. The web browser can store Blobs in memory or on disk, and Blobs can represent really enormous chunks of data (such as video files) that are too large to fit in main memory without first being broken into smaller pieces with slice().
Q: The blobs are broken into smaller pieces using which of the following functions?
A. partition()
B. cut()
C. sliceall()
D. slice()
Solution: The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user’s system. The web browser can store Blobs in memory or on disk, and Blobs can represent really enormous chunks of data (such as video files) that are too large to fit in main memory without first being broken into smaller pieces with slice().
Q: Which algorithm supports blobs?
A. Structured clone algorithm
B. Double buffer algorithm
C. Chen’s algorithm
D. Retrieval algorithm
Solution: Blobs represent data that isn’t necessarily in a JavaScript-native format. Blobs are supported by the structured clone algorithm, which means that you can obtain one from another window or thread via the message event.
Q: Which database can be used to retrieve blobs?
A. Server-side databases
B. Client-side databases
C. Both Server-side and Client-side databases
D. Temporary databases
Solution: A Blob object represents a file-like object of immutable, raw data. Blobs represent data that isn’t necessarily in a JavaScript-native format. Blobs can be retrieved from client-side databases.
Q: Which object can be used to create your own blobs?
A. Creator
B. BlobCreator
C. BlobBuilder
D. BuilderBlob
Solution: Blobs represent data that isn’t necessarily in a JavaScript-native format. You can create your own blobs, using a BlobBuilder object to build them out of strings, ArrayBuffer objects, and other Blobs.
Q: Which of the following is a subtype of Blob?
A. Elemental Object
B. Create Object
C. Data Object
D. File Object
Solution: The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user’s system. The client-side JavaScript File object is a subtype of Blob: a File is just a Blob of data with a name and a modification date.
Q: Which method facilitates in uploading a Blob to a server?
A. send()
B. pass()
C. upload()
D. store()
Solution: The Blob() constructor allows one to create blobs from other objects. You can upload a Blob to a server by passing it to the send() method of an XMLHttpRequest object.
Q: A Blob URL can be created using which of the following function?
A. createURL()
B. createObjectURL()
C. designURL()
D. URLCreation()
Solution: The Blob() constructor allows one to create blobs from other objects. Create a Blob URL with the function createObjectURL(). At the time of this writing, the draft specification and Firefox 4 put this function in a global object named URL, and Chrome and Webkit prefix that new global, calling it webkitURL.

You Have Score    /10